//提供 封装了 执行 登录 注册 相关功能的 异步请求的api方法
//导入 axios
import axios from "@/utils/request.js";

//按需导出 api方法
export const getGoodsCateDataList = () => axios({
    url:'categories'
})

export const getParamsList = (id,params) => axios({
    url: `categories/${id}/attributes`,
    params
})

export const addGoods = (data) => axios({
    url: 'goods',
    method:'post',
    data
})